<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>招标详情·数据工厂</title>
    <link href="${pageContext.request.contextPath }/img/webLogoIcon.png" rel="shortcut icon">
    <link href="${pageContext.request.contextPath }/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/font-awesome.css"  rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/animate.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/style.css"  rel="stylesheet">
    <!-- FooTable -->
    <link href="${pageContext.request.contextPath }/css/footable.core.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/datepicker3.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/mypage.css"   rel="stylesheet">
</head>

<body>

<div id="wrapper">

    <nav class="navbar-default navbar-static-side" role="navigation">
        <% request.setAttribute("LEFT", "badding");  %>
        <jsp:include page="../components/left.jsp" flush="true"/>
    </nav>

    <div id="page-wrapper" class="gray-bg">
        <div class="row border-bottom m-b-20">
            <jsp:include page="../components/head.jsp" flush="true"/>
        </div>
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-9">
                <h2>招标详情</h2>
                <ol class="breadcrumb">
                    <li class="nav-main1"><a href="${pageContext.request.contextPath}/admin/tosystem_overview">主页</a>
                    </li>
                    <li class="nav-main2"><a id="navigation1" href="#">招标投标</a></li>
                    <li class="active"><a>招标详情</a></li>
                </ol>
            </div>
        </div>

        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                    	<div class="ibox-title">
                    	 <h2 style="text-align: center;line-height: 35px;">${biddingData.title}</h2>
                            <div class="bd-tips mb-10" style="justify-content: center;">
                                <span >发布时间：${fn:substring(biddingData.publish_time, 0, 10)}</span>
                                <span>招标项目编号：${biddingData.numberid}</span>
                                <span>业务类型：
                                    <c:choose>
                                        <c:when test='${biddingData.informationtype eq ""}'>暂无信息</c:when>
                                        <c:otherwise>
                                            ${biddingData.informationtype}
                                        </c:otherwise>
                                    </c:choose>
                               </span>
                               <span>信息类型：
                                    <c:choose>
                                        <c:when test='${biddingData.business_type eq ""}'>暂无信息</c:when>
                                        <c:otherwise>
                                            ${biddingData.business_type}
                                        </c:otherwise>
                                    </c:choose>
                               </span>
                                <span>行业：
                                    <c:choose>
                                        <c:when test='${biddingData.industry eq ""}'>暂无信息</c:when>
                                        <c:otherwise>
                                            ${biddingData.industry}
                                        </c:otherwise>
                                    </c:choose>
                               </span> 
                               <span>信息来源：${biddingData.sourceplatform}</span>
                               <span><a target="_blank" style="text-decoration: none;color:#1ab394" href="${biddingData.detail_url}">原文地址</a></span>
                            </div>
                    	</div>
                        <div class="ibox-content">
                           
                            <div class="table-responsive">
                                <!-- 主体内容start -->
                                ${biddingData.content_html}
                                <!-- 主体内容end -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <jsp:include page="../components/footer.jsp" flush="true"/>
    </div>
</div>


<!-- Mainly scripts -->
<script src="${pageContext.request.contextPath }/js/jquery-2.1.1.js"></script>
<script src="${pageContext.request.contextPath }/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/js/jquery.metisMenu.js"></script>
<script src="${pageContext.request.contextPath }/js/jquery.slimscroll.min.js"></script>
<!-- Custom and plugin javascript -->
<script src="${pageContext.request.contextPath }/js/inspinia.js"></script>
<script src="${pageContext.request.contextPath }/js/pace.min.js"></script>
<script src="${pageContext.request.contextPath }/js/plugins/toastr/toastr.min.js"></script>
<script type="text/javascript">
    var allhtml = `${biddingData.content_html}`
	function greatehtml(data) {
        var reg4 = /style="[^=>]*"([(\s+\w+=)|>])/g
        var aftera = data.replace(reg4, '$1')
//         console.log(aftera)
    }
    greatehtml(allhtml)
// 	console.log(`${biddingData.content_html}`)
</script>

</body>

</html>
